/*
 * Copyright (c) zhg2yqq.com Corp.
 * All Rights Reserved.
 */
package com.zhg2yqq.wheels.security;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhg2yqq, 2023年2月24日
 * @version zhg2yqq v1.0
 */
@ConfigurationProperties(prefix = "security")
public class CustomeSecurityProperties {
    private String mode;
    private String tokenName = "Authorization";
    private long tokenExpireTime = 86400000L;
    private String tokenSecret = "ovsXL8iavYmE7gSY2nDqlbR5qcRfWdf5";
    private String loginUrl = "/login";
    private String logoutUrl = "/logout";
    private String loginAfterUrl;
    private String logoutAfterUrl;
    private Boolean locked;
    private String lockedMessage;

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getTokenName() {
        return tokenName;
    }

    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }

    public long getTokenExpireTime() {
        return tokenExpireTime;
    }

    public void setTokenExpireTime(long tokenExpireTime) {
        this.tokenExpireTime = tokenExpireTime;
    }

    public String getTokenSecret() {
        return tokenSecret;
    }

    public void setTokenSecret(String tokenSecret) {
        this.tokenSecret = tokenSecret;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getLogoutUrl() {
        return logoutUrl;
    }

    public void setLogoutUrl(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }

    public String getLoginAfterUrl() {
        return loginAfterUrl;
    }

    public void setLoginAfterUrl(String loginAfterUrl) {
        this.loginAfterUrl = loginAfterUrl;
    }

    public String getLogoutAfterUrl() {
        return logoutAfterUrl;
    }

    public void setLogoutAfterUrl(String logoutAfterUrl) {
        this.logoutAfterUrl = logoutAfterUrl;
    }

    public Boolean getLocked() {
        return locked;
    }

    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    public String getLockedMessage() {
        return lockedMessage;
    }

    public void setLockedMessage(String lockedMessage) {
        this.lockedMessage = lockedMessage;
    }
}
